/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */
package orm.tallerdesoa;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tcp_publicacionDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression pub_id;
	public final IntegerExpression pub_monto;
	public final StringExpression pub_descripcion;
	
	public Tcp_publicacionDetachedCriteria() {
		super(orm.tallerdesoa.Tcp_publicacion.class, orm.tallerdesoa.Tcp_publicacionCriteria.class);
		pub_id = new IntegerExpression("pub_id", this.getDetachedCriteria());
		pub_monto = new IntegerExpression("pub_monto", this.getDetachedCriteria());
		pub_descripcion = new StringExpression("pub_descripcion", this.getDetachedCriteria());
	}
	
	public Tcp_publicacionDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.tallerdesoa.Tcp_publicacionCriteria.class);
		pub_id = new IntegerExpression("pub_id", this.getDetachedCriteria());
		pub_monto = new IntegerExpression("pub_monto", this.getDetachedCriteria());
		pub_descripcion = new StringExpression("pub_descripcion", this.getDetachedCriteria());
	}
	
	public Tcp_personaDetachedCriteria createTcp_personaPersCriteria() {
		return new Tcp_personaDetachedCriteria(createCriteria("tcp_personaPers"));
	}
	
	public Tcp_publicacion uniqueTcp_publicacion(PersistentSession session) {
		return (Tcp_publicacion) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tcp_publicacion[] listTcp_publicacion(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tcp_publicacion[]) list.toArray(new Tcp_publicacion[list.size()]);
	}
}

